package com.example.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 数据库 cron 表达式模拟
 * @author ZhengDing
 * @date 2022/4/9 21:21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CronDefinition {
    
    public CronDefinition(Integer cronId, String cronExpression, String cronKey) {
        this.cronId = cronId;
        this.cronExpression = cronExpression;
        this.cronKey = cronKey;
    }
    
    private Integer cronId;
    
    // cronKey 用于绑定具体的任务
    private String cronKey;
    
    // cron 表达式
    private String cronExpression;
    
    private Integer status;
    
    private String desc;
}
